package org.moon.framework.sample.redis.service;

import lombok.extern.slf4j.Slf4j;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

/**
 * @author ninglong
 */
@Service
@Slf4j
public class RedisService {
	

	@Cacheable(value = "redis-demo-1", key = "'moon_1'")
	public String getValueFromSpringCache() {
		log.info("没有使用springCache...");
		return "我是使用了springCache的";
	}
}